-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix missing assets in kotlin inner sandwich lib + handle merging mani… #1113
Conversation
…fest even not android res are present
@pswaminathan are you able to confirm if this works? |
@Bencodes @oliviernotteghem this does not fully address the regression introduced in 1.9 for us. We have On a more fundamental level, I still do not understand the value of whitelisting specific attributes to pass down, rather than popping exports out and passing down the rest. If the goal is to not send exports, then we should not send exports, but not make firm opinions about what |
@pswaminathan : are you sure re : whitelisting attributes. While optimizing build time, we wanted to keep input to a minimal list. This way target is less likely to be invalidated. Also, one can argue **kwargs here does not contain here all attributes anyway (a lot are 'popped out' already implicitely : rules_kotlin/kotlin/internal/jvm/android.bzl Lines 29 to 41 in ca5b216
A good test would be to pop out only the exports, and run full build time regression test to see if there is no regression. If so, your approach should be safe. But decision is contigent on the |
@oliviernotteghem thanks for responding!
I'm not sure. I don't think it matters so much because the inner lib gets exported by the outer lib anyway, so they'll get collected downstream either way. But I don't see proguard_specs on the outer lib either. So I think my ask is less "shouldn't proguard_specs be on the inner lib" and more "shouldn't it be somewhere". Adding it to the outer lib feels like a reasonable alternative.
I hear that. But I don't think the default should be "some android_library attributes don't count". We can disagree on this, I suppose, and if I need to add a different tag to certain targets, I can do that. It just feels like the default should be that things work, and not that attributes are silently dropped.
Yes, but they are popped out because they get used. If we popped out every attribute used by
When you say this, do you mean to run the full rules_kotlin test suite? That is being done and passes with this approach in #1110. Though in that PR, I just modified that branch. Your PR here differs in that you removed one of the branches entirely. If you'd rather, I would be happy to incorporate that approach (removing one of the branches) into my PR. |
@oliviernotteghem thinking about this a little more: Looking at the list of If you agree with adding this and want to do that in this PR, I'm on board. Otherwise I can submit another PR with that if we want to merge this in first. |
re : "run full build time regression test". Sorry, I am referring to our internal build time benchmark. I would have to do this. I can't really help with aidl either (we're not using it in our codebase), but I like the idea of amending PR with setting |
Going to close this PR since we rolled back to the previous behavior 0f4c0af |
…fest even not android res are present